home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / mui / bcc_src.lha / Parser / test / EJG.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-05  |  1.1 KB  |  75 lines

  1. #ifndef EJG_H
  2. #define EJG_H
  3.  
  4. /* ---------------------------------------------- */
  5. /* BCC header. Inserted into every generated file */
  6. /* ---------------------------------------------- */
  7.  
  8. #ifndef _BCC_EVERY
  9. #define _BCC_EVERY
  10.  
  11. /* Includes necessary for every mui c code */
  12.  
  13. #include <proto/exec.h>
  14. #include <proto/muimaster.h>
  15. #include <libraries/mui.h>
  16.  
  17. #include <mui/muiextra.h>
  18.  
  19. #include <string.h>
  20.  
  21. /* defines that help adjusting to any compiler */
  22.  
  23. #ifdef _DCC
  24.     #define REG(x) __ ## x
  25.     #define ASM
  26.     #define SAVEDS __geta4
  27. #else
  28.     #define REG(x) register __ ## x
  29.  
  30.     #ifdef _STORM
  31.  
  32.             #define ASM
  33.             #define SAVEDS __saveds
  34.  
  35.     #else
  36.  
  37.         #if defined __MAXON__ || defined __GNUC__
  38.             #define ASM
  39.             #define SAVEDS
  40.         #else
  41.             #define ASM    __asm
  42.             #define SAVEDS __saveds
  43.         #endif
  44.     
  45.     #endif
  46.  
  47. #endif
  48.  
  49. #define CallSuper() DoSuperMethodA(cl, obj, msg)
  50. #define value (tag->ti_Data)
  51. #define GetData() INST_DATA(cl, obj)
  52.  
  53. #endif
  54.  
  55. typedef struct {
  56.  
  57.  
  58.     ULONG hit, render;
  59.  
  60.  
  61.     
  62.  
  63. } EJGData;
  64.  
  65. /* Method Tags */
  66. #define MUIM_EJG_Anim 0x81cd0251
  67.  
  68.  
  69. extern struct MUI_CustomClass *cl_EJG;
  70. #define EJGObject NewObject( cl_EJG->mcc_Class, NULL
  71. struct MUI_CustomClass *EJG_Create( void );
  72.  
  73.  
  74. #endif
  75.